package com.itic.mall.system.project.email.service;

import com.itic.appbase.framework.common.service.CrudService;
import com.itic.mall.system.inter.project.email.persistence.dao.EmailDao;
import com.itic.mall.system.inter.project.email.persistence.model.Email;
import com.itic.mall.system.inter.project.email.persistence.model.EmailExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional
public class EmailService
     extends CrudService<EmailDao,Email,EmailExample> {
    @Autowired
    private EmailDao emailDao;


    public Email getEmailByOrgCode( String orgCode ){
    	return emailDao.getEmailByOrgCode(orgCode);
    }
}